package cn.sunagy.security.maz.admin.service;

import cn.sunagy.security.maz.common.response.TableResultResponse;
import com.github.wxiaoqi.merge.facade.IMergeResultParser;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @desc：#TODO fill me ！
 * @author：三餘無夢生
 * @date：2018/6/2
 * @time：下午6:22
 */
@Component
public class TableResultParser implements IMergeResultParser {
    @Override
    public List parser(Object o) {
        TableResultResponse response = (TableResultResponse) o;
        TableResultResponse.TableData data = (TableResultResponse.TableData) response.getData();
        List result = data.getRows();
        return result;
    }
}
